//
//  QTTAddItemView.m
//  QuTouTiao
//
//  Created by 杨杨子 on 2018/6/30.
//  Copyright © 2018年 杨杨子. All rights reserved.
//

#import "QTTAddItemView.h"
#import "QTTPublicBtn.h"
@interface QTTAddItemView()

@end
@implementation QTTAddItemView

-(instancetype)initWithFrame:(CGRect)frame AndArray:(NSMutableArray *)itemArray{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        CGFloat width = 60;//(SCREEN_WIDTH - self.height) / itemArray.count;
        self.contentSize = CGSizeMake(itemArray.count * width, self.height);
        for (NSInteger index = 0; index < itemArray.count; index ++) {
            QTTPublicBtn *button = [[QTTPublicBtn alloc] initWithFrame:CGRectMake(width * index, 0, width, self.height) andTittle:itemArray[index] AndTittleColor:[UIColor blackColor] AndTittleFont:16 AndBackColor:[UIColor clearColor] AndFatherView:self];
            
        }
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    
}

@end
